Termination w.r.t. Q of the following Term Rewriting System could be disproven:

Q restricted rewrite system:
The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

ACTIVE(f(b, X, c)) → F(X, c, X)
MARK(f(X1, X2, X3)) → MARK(X2)
ACTIVE(f(b, X, c)) → MARK(f(X, c, X))
F(X1, mark(X2), X3) → F(X1, X2, X3)
MARK(b) → ACTIVE(b)
F(X1, X2, mark(X3)) → F(X1, X2, X3)
F(active(X1), X2, X3) → F(X1, X2, X3)
MARK(f(X1, X2, X3)) → F(X1, mark(X2), X3)
MARK(c) → ACTIVE(c)
F(X1, active(X2), X3) → F(X1, X2, X3)
ACTIVE(c) → MARK(b)
F(X1, X2, active(X3)) → F(X1, X2, X3)
F(mark(X1), X2, X3) → F(X1, X2, X3)
MARK(f(X1, X2, X3)) → ACTIVE(f(X1, mark(X2), X3))

The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

ACTIVE(f(b, X, c)) → F(X, c, X)
MARK(f(X1, X2, X3)) → MARK(X2)
ACTIVE(f(b, X, c)) → MARK(f(X, c, X))
F(X1, mark(X2), X3) → F(X1, X2, X3)
MARK(b) → ACTIVE(b)
F(X1, X2, mark(X3)) → F(X1, X2, X3)
F(active(X1), X2, X3) → F(X1, X2, X3)
MARK(f(X1, X2, X3)) → F(X1, mark(X2), X3)
MARK(c) → ACTIVE(c)
F(X1, active(X2), X3) → F(X1, X2, X3)
ACTIVE(c) → MARK(b)
F(X1, X2, active(X3)) → F(X1, X2, X3)
F(mark(X1), X2, X3) → F(X1, X2, X3)
MARK(f(X1, X2, X3)) → ACTIVE(f(X1, mark(X2), X3))

The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 2 SCCs with 5 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ UsableRulesProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

F(X1, active(X2), X3) → F(X1, X2, X3)
F(X1, X2, active(X3)) → F(X1, X2, X3)
F(mark(X1), X2, X3) → F(X1, X2, X3)
F(X1, mark(X2), X3) → F(X1, X2, X3)
F(X1, X2, mark(X3)) → F(X1, X2, X3)
F(active(X1), X2, X3) → F(X1, X2, X3)

The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We can use the usable rules and reduction pair processor [15] with the Ce-compatible extension of the polynomial order that maps every function symbol to the sum of its argument. Then, we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ UsableRulesProof
QDP
                ↳ QDPSizeChangeProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

F(X1, active(X2), X3) → F(X1, X2, X3)
F(mark(X1), X2, X3) → F(X1, X2, X3)
F(X1, X2, active(X3)) → F(X1, X2, X3)
F(X1, mark(X2), X3) → F(X1, X2, X3)
F(X1, X2, mark(X3)) → F(X1, X2, X3)
F(active(X1), X2, X3) → F(X1, X2, X3)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ RuleRemovalProof

Q DP problem:
The TRS P consists of the following rules:

MARK(f(X1, X2, X3)) → MARK(X2)
MARK(f(X1, X2, X3)) → ACTIVE(f(X1, mark(X2), X3))
ACTIVE(f(b, X, c)) → MARK(f(X, c, X))

The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the rule removal processor [15] with the following polynomial ordering [25], at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.
Strictly oriented dependency pairs:

MARK(f(X1, X2, X3)) → MARK(X2)


Used ordering: POLO with Polynomial interpretation [25]:

POL(ACTIVE(x1)) = 2·x1   
POL(MARK(x1)) = 2·x1   
POL(active(x1)) = x1   
POL(b) = 0   
POL(c) = 0   
POL(f(x1, x2, x3)) = 1 + x1 + 2·x2 + x3   
POL(mark(x1)) = x1   



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ RuleRemovalProof
QDP
                ↳ NonTerminationProof

Q DP problem:
The TRS P consists of the following rules:

MARK(f(X1, X2, X3)) → ACTIVE(f(X1, mark(X2), X3))
ACTIVE(f(b, X, c)) → MARK(f(X, c, X))

The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We used the non-termination processor [17] to show that the DP problem is infinite.
Found a loop by narrowing to the left:

The TRS P consists of the following rules:

MARK(f(X1, X2, X3)) → ACTIVE(f(X1, mark(X2), X3))
ACTIVE(f(b, X, c)) → MARK(f(X, c, X))

The TRS R consists of the following rules:

active(f(b, X, c)) → mark(f(X, c, X))
active(c) → mark(b)
mark(f(X1, X2, X3)) → active(f(X1, mark(X2), X3))
mark(b) → active(b)
mark(c) → active(c)
f(mark(X1), X2, X3) → f(X1, X2, X3)
f(X1, mark(X2), X3) → f(X1, X2, X3)
f(X1, X2, mark(X3)) → f(X1, X2, X3)
f(active(X1), X2, X3) → f(X1, X2, X3)
f(X1, active(X2), X3) → f(X1, X2, X3)
f(X1, X2, active(X3)) → f(X1, X2, X3)


s = ACTIVE(f(mark(c), X2', mark(c))) evaluates to t =ACTIVE(f(X2', mark(c), X2'))

Thus s starts an infinite chain as s semiunifies with t with the following substitutions:




Rewriting sequence

ACTIVE(f(mark(c), mark(c), mark(c)))ACTIVE(f(active(c), mark(c), mark(c)))
with rule mark(c) → active(c) at position [0,0] and matcher [ ]

ACTIVE(f(active(c), mark(c), mark(c)))ACTIVE(f(mark(b), mark(c), mark(c)))
with rule active(c) → mark(b) at position [0,0] and matcher [ ]

ACTIVE(f(mark(b), mark(c), mark(c)))ACTIVE(f(mark(b), mark(c), c))
with rule f(X1, X2', mark(X3)) → f(X1, X2', X3) at position [0] and matcher [X3 / c, X1 / mark(b), X2' / mark(c)]

ACTIVE(f(mark(b), mark(c), c))ACTIVE(f(b, mark(c), c))
with rule f(mark(X1), X2, X3) → f(X1, X2, X3) at position [0] and matcher [X3 / c, X2 / mark(c), X1 / b]

ACTIVE(f(b, mark(c), c))MARK(f(mark(c), c, mark(c)))
with rule ACTIVE(f(b, X, c)) → MARK(f(X, c, X)) at position [] and matcher [X / mark(c)]

MARK(f(mark(c), c, mark(c)))ACTIVE(f(mark(c), mark(c), mark(c)))
with rule MARK(f(X1, X2, X3)) → ACTIVE(f(X1, mark(X2), X3))

Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence


All these steps are and every following step will be a correct step w.r.t to Q.